- form_for(meeting) do |f|
  
= f.hidden_field :iteration_id, :value => iteration.id

%p
  %b Name
  %br/
  = f.text_field :name

%p
  %b Meeting date
  %br/
  = f.date_select :meeting_date

%fieldset.subsection
  %legend.subsectio Participants
  - @iteration.project.project_members.each do |participant|
  %div{:style => "margin: 0; padding: 0;"}
    %input{:type => "checkbox", :name => "users[]", :id => "users_" + participant.user.id.to_s, :value => participant.user.id, :checked => meeting.meeting_participants.map { |mp| mp.user }.include?(participant.user)}   
    %label{:for => "users_" + participant.user.id.to_s } 
      = participant.user.full_name
  -end
%p
  %b Length (hours)
  %br/
  = f.text_field :length

%p
  %b Notes
  %br/
  = f.text_area :notes, :class => "big"
%p
  = f.submit button
- end
